In [1]:
from gevi_classes import *
from paths import *
%matplotlib inline
%load_ext autoreload
%autoreload 2
/Users/GP1514/.pyenv/versions/anaconda3-2.5.0/lib/python3.5/site-packages/matplotlib/__init__.py:1350: UserWarning:  This call to matplotlib.use() has no effect
because the backend has already been chosen;
matplotlib.use() must be called *before* pylab, matplotlib.pyplot,
or matplotlib.backends is imported for the first time.

  warnings.warn(_use_error_msg)
At Imperial
In [2]:
# from IPython.display import set_matplotlib_formats
# set_matplotlib_formats('jpeg')
# %config InlineBackend.figure_format = 'jpeg'
# %config InlineBackend.rc = {'font.size': 10, 'figure.figsize': (6.0, 4.0), \
#                             'figure.facecolor': (1, 1, 1, 0), 'savefig.dpi': 100, \
#                             'figure.subplot.bottom': 0.125, 'figure.edgecolor': (1, 1, 1, 0)}
In [3]:
%%javascript
IPython.OutputArea.auto_scroll_threshold = 100;
In [4]:
# instantiate utility class
gr = Graph()
In [5]:
# load data
mice = loadDataLight()
# loadMask(mice.mice)
mouseA
mouseB
mouseM1217F
mouseM1223M
In [6]:
gr.fRmin = 0
gr.fHmin = 0
gr.fHmax = 1400
gr.fRmax = 100

alpha =  mouseB.experiments[2].meanAlphaModel
In [7]:
# for mouse in mice.mice:
#     for exp in mouse.experiments:
#         for rep in exp.repeats:
#             gr.plotModels(mouse, exp.number, rep.number, alpha, plotAlpha=False)
def plotMouseModels(mouse):
    for exp in mouse.experiments:
        for rep in exp.repeats:
            gr.plotModels(mouse, exp.number, rep.number, alpha, plotAlpha=False)

Mouse M1217F

In [12]:
plotMouseModels(mice.mice[2])

Mouse M1223M

In [9]:
plotMouseModels(mice.mice[3])
In [ ]: